package com.hxjb.service.impl;

import com.hxjb.common.BaseDao;
import com.hxjb.config.dynamicDSConfig.TargetDataSource;
import com.hxjb.domain.User;
import com.hxjb.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by wt on 2018/5/8.
 */
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private BaseDao baseDao;

    @Override
    @TargetDataSource(name = "HXJB_USER")
    public User getById(Integer id) {
        return baseDao.selectOne("UserMapper.getById",id);
    }
}
